package myTest;

import org.junit.Test;

public class DoubleTest {

    @Test
    public void testdouble() {

        double d = 1000001.00000000001;
        double c = 10000000.00000001;
        double b = 10000000000000001d;
        System.out.println(d);
        System.out.println(c);
        System.out.println(b);

        Double t1 = Double.valueOf(0d / 0.0d);
        Double t2 = Double.valueOf(0d / 0.0d);
        System.out.println(t1.equals(t2));
        System.out.println(t1.doubleValue() == t1.doubleValue());
        System.out.println(t1.doubleValue() == t2.doubleValue());
        System.out.println(t1.isNaN());
        System.out.println(t1.isInfinite());

    }

}
